﻿<%@ Page Language="C#" MasterPageFile="Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="cognysClient.Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <meta name="viewport" content="width=device-width" />
    <link href="css/Style.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

        <div id="main">
            <div id="logo">
                <img src="Images/logo.png"/>
            </div>
        <asp:Login ID="loginControl" runat="server" DestinationPageUrl="pages/Main.aspx" RenderOuterTable="false">
            <LayoutTemplate>
                    <div id="div-login">
                    <div id="input">
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" >Användarnamn:</asp:Label><br/>
                        <asp:TextBox ID="UserName" runat="server" CssClass="loginTxtBox" ></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" CssClass="reqTxtBox" ControlToValidate="UserName" ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="loginControl">*</asp:RequiredFieldValidator>
                    
                    
                          <asp:Label ID="passwordLabel" runat="server" AssociatedControlID="UserName" >Lösenord:</asp:Label>  <br/>
                        <asp:TextBox ID="Password" runat="server" TextMode="Password" CssClass="loginTxtBox" ></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" CssClass="reqTxtBox" ControlToValidate="Password" ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="loginControl">*</asp:RequiredFieldValidator>

                        <br/><br/>
                        <asp:Button ID="LoginButton" runat="server" CssClass="button orange" CommandName="Login" Text="Logga in" ValidationGroup="loginControl" OnClick="LoginButton_Click" />
                    </div>
                </div>
                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>               
            </LayoutTemplate>
        </asp:Login>

        <div id="footer">
            
        </div>
    </div>
</asp:Content>
